package org.nmgyjt.springboot.beans.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@ApiModel("验证码登录对象")
@Data
public class CsSystemCodeLoginBean {


    @NotBlank(message = "账号密码必须请输入手机号码")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "手机号码格式不对")
    @ApiModelProperty(required = true, value = "菜单名称", dataType = "string")
    private String mobile;

    @NotEmpty(message = "验证码不允许为空!")
    @ApiModelProperty(required = true, value = "行政区划编码", dataType = "string")
    private String code;

}
